package com.red.wood.module.task;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DwdTask {
	
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		
		ApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring-context.xml");
		
		CdnProvinceParseService cdnService = (CdnProvinceParseService) context.getBean("cdnProvinceParseService");
		
		cdnService.cdnDataParse();
		
		cdnService.cdnCustomerParse();
		
		IrcsProvinceParseService ircs = (IrcsProvinceParseService) context.getBean("ircsProvinceParseService");
		
		ircs.ircsDataParse();
		
		ircs.ircsUserParse();
		
		ircs.ircsIpParse();
		
		ircs.ircsIpGetWayParse();
		
		System.exit(0);
	}
}
